// ui 界面基类
using UnityEngine;

namespace Framework.UI
{
    public abstract class UIForm : MonoBehaviour
    {
        public abstract EUILayer Layer { get; }
        public virtual bool IsFullScreen => false;
        public int FullScreenPriority { get; set; }   // UIManager专用

        public virtual void OnEnter()
        {
        }

        public virtual void OnExit()
        {
        }

        public virtual void Close()
        {
            FrameworkEntry.GetModule<UIManager>().CloseUI(this);
        }
    }
}